import produce from "immer";

const object = {
  a: {
    b: 1,
  },
};

produce(object, (draft) => {
  console.log(draft.a.b);
  draft.a.b = 3;
});
